package com.itheima.homework.test2;

/**
 * @author jiangxun
 * @date 11-19-2024
 */
public class Test2 {
    public static void main(String[] args) {
        Manager manager = new Manager(1001,"张三",10000);
        manager.work();
        manager.eat();

        Cook cook = new Cook(1002,"李四",8000);
        cook.work();
        cook.eat();
    }
}
